/**
 * Global variable file
 * Copyright (c) 2013 Maris BECS. All rights reserved.
 */
 
#ifndef MAIN_H
#define MAIN_H

#include <asf.h>


// ALL POSSIBLE ROBOT STATES. USAGE IS NOT COMPLETELY IMPLEMENTED YET
enum RobotState_t {
	RS_SAFE,
	RS_TESTING,
	RS_WAIT_FOR_START,
	RS_FIGHT,
	RS_KILLED,
	RS_NONE,
};


// Configuration symbol for enabling the USART traces
//#define DEBUG_ENABLE


// Global variables
volatile int8_t PWM_L, PWM_R, Speed;
volatile int16_t Time_ms;

volatile bool servo_pos;
volatile int8_t Distance_sens;
volatile int8_t Line_sens;
volatile enum RobotState_t Robot_state;

#endif /* MAIN_H */
